Invoking macros

You can, of course, run a Rexx script that addresses Mosaic from any CLI. Since this is inconvenient, there are two mechanisms for invoking Rexx scripts inside of Amiga Mosaic.
Macro command
The Rexx->Macro menu entry brings up the Rexx Macro window. You may enter a macro invocation directly into the string, including a string in double quotes to indicate a string macro. You can also invoke a file requester to insert the name of a file into the string. You can then add arguments to the string. Hitting Run or the return key in the string will invoke the macro.
User Macros
There are 10 User Macro entries in the Rexx menu. You can set them in env:mosaic/prefs, as RexxMacro#. The syntax for this is:
RexxMacro# label | macro
The label is used in the Rexx menu for macro #. The macro is the macro that will be run when that menu item is selected. String macros may be used as the value for Macro. Typical examples might be:

RexxMacro1 	NCSA What's New | "'jump url http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/whats-new.html'"
RexxMacro2	Test Macro | rexx:test.www

If the RexxMacro appears without a label and command, then the menu entry is replaced with a bar.

Unfortunately, MUI does not appear to allow dynamic menus - or much of anything else - so these are not settable from a Rexx script.


Up to the manual, or on to commands.
Mike W. Meyer